<template>
    <div>
        <h1>test Cors</h1>
        <button @click="testGet">点击测试</button>
    </div>
</template>

<script>
import NewsCategory from "@/api/NewsCategory.js"
let newsCategory=new NewsCategory();
export default {
    methods:{
       async testGet(){
            console.log(await newsCategory.getNewsCategoriesByCount('NewsCategories',8));

        }
    }
}
</script>